<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: pl125 <xskjs888@163.com>
// +----------------------------------------------------------------------

namespace api\demo\controller;

use cmf\controller\RestBaseController;

class IndexController extends RestBaseController
{
    protected $noNeedLogin = ['index','index1','index2','index3'];

    public function index(){
        $this->error('禁止访问!');
    }

    public function index1(){
        $this->success('请求成功!', ['test'=>'我是index1']);
    }

    public function index2(){
        $this->success('请求成功!', ['test'=>'我是index2']);
    }

    public function index3(){
        $this->success('请求成功!', ['test'=>'我是index3']);
    }


}
